<!DOCTYPE html>
<!--
   /******************************************************************************
     Copyright:: 2020- IBM, Inc

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  *****************************************************************************/
-->

<html lang="en">
	<head>
		<title>Flag a violation if Accessible name does not match or contain the visible label text</title>
	</head>
	<body>

	  <!-- Pass:  -->
    <label for="fuel">Fuel level:</label>
    <meter id="fuel" name="fuel"
       min="0" max="100"
       low="33" high="66" optimum="80"
       value="50" aria-label="Fuel level remaining:">
      at 50/100
    </meter>
    <br>

    <!-- Fail:  -->
    <label for="fuel2">Fuel level remaining:</label>
    <meter id="fuel2" name="fuel"
       min="0" max="100"
       low="33" high="66" optimum="80"
       value="50" aria-label="Fuel level:">
      at 50/100
    </meter>
    <br>

<script type="text/javascript">
//<![CDATA[
  if (typeof(OpenAjax) == 'undefined') OpenAjax = {}
  if (typeof(OpenAjax.a11y) == 'undefined') OpenAjax.a11y = {}
  OpenAjax.a11y.ruleCoverage = [
    {
      ruleId: "1202",
      passedXpaths: [
      ],
      failedXpaths: [
        "/html/body/meter[2]"
      ]
    }
  ];
//]]>
</script>
	</body>
	</html>
